package auctionhausen

class EmailContent {
	def to
	def subject
	def model
	def mailTemplateURI
}

class EmailService {

	def mailService
	def gspTagLibraryLookup

	def sendEmail(EmailContent emailContent) {
		mailService.sendMail {
			to emailContent.to
			subject emailContent.subject
			body(view:emailContent.mailTemplateURI, model: emailContent.model)
		}
	}
}
